
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mytools;

import com.opensymphony.xwork2.ActionSupport;

/**

 *

 * @author wl

 */
public class judgedeletemany extends ActionSupport {

    private String[] id;
    private judgeDAO jd;

    public judgedeletemany() {
    }

    public String execute() throws Exception {

        setJd(new judgeDAO());
        if (getId() != null) {
            for (int i = 0; i < getId().length; i++) {
                getJd().deletejudge(Integer.parseInt(getId()[i]));
            }
        }
        return SUCCESS;

    }

    /**
     * @return the id
     */
    public String[] getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String[] id) {
        this.id = id;
    }

    /**
     * @return the jd
     */
    public judgeDAO getJd() {
        return jd;
    }

    /**
     * @param jd the jd to set
     */
    public void setJd(judgeDAO jd) {
        this.jd = jd;
    }
}
